package com.tcc.spring.interceptor;

import com.tcc.core.interceptor.TccTransactionInterceptor;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/10/27 14:39
 */

@Component
public class TccTransactionInterceptorImpl implements TccTransactionInterceptor {

    @Override
    public Object interceptor(final ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("---------------TccTransactionInterceptorImpl::interceptor------------------");
        pjp.proceed(pjp.getArgs());
        return pjp.proceed();
    }
}
